using System;
using System.Collections.Generic;
using System.Text;
namespace Decision.BusinessLayer
{
	public class DCS_PROVINCE
	{

		#region InnerClass
		public enum DCS_PROVINCEFields
		{
			PROVINCE_ID,
			PROVINCE_CODE,
			PROVINCE_NAME,
			GEO_ID
		}
		#endregion

		#region Data Members

			int _pROVINCE_ID;
			string _pROVINCE_CODE;
			string _pROVINCE_NAME;
			int? _gEO_ID;

		#endregion

		#region Properties

		public int  PROVINCE_ID
		{
			 get { return _pROVINCE_ID; }
			 set
			 {
				 if (_pROVINCE_ID != value)
				 {
					_pROVINCE_ID = value;
					 PropertyHasChanged("PROVINCE_ID");
				 }
			 }
		}

		public string  PROVINCE_CODE
		{
			 get { return _pROVINCE_CODE; }
			 set
			 {
				 if (_pROVINCE_CODE != value)
				 {
					_pROVINCE_CODE = value;
					 PropertyHasChanged("PROVINCE_CODE");
				 }
			 }
		}

		public string  PROVINCE_NAME
		{
			 get { return _pROVINCE_NAME; }
			 set
			 {
				 if (_pROVINCE_NAME != value)
				 {
					_pROVINCE_NAME = value;
					 PropertyHasChanged("PROVINCE_NAME");
				 }
			 }
		}

		public int?  GEO_ID
		{
			 get { return _gEO_ID; }
			 set
			 {
				 if (_gEO_ID != value)
				 {
					_gEO_ID = value;
					 PropertyHasChanged("GEO_ID");
				 }
			 }
		}


		#endregion

		#region not support PropertyChangeEvent

		protected virtual void PropertyHasChanged(string propertyName)
		{
			return;
		}

		#endregion
/********** not support Validation
		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("PROVINCE_ID", "PROVINCE_ID"));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("PROVINCE_CODE", "PROVINCE_CODE",2));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("PROVINCE_NAME", "PROVINCE_NAME",150));
		}

		#endregion
********/

	}
}
